ActionController::Routing::Routes.draw do |map|
  map.resources :users
  map.resource  :session
  map.resources :events
  map.resources :categories, :collection => {:reroute => :get}
  map.resources :languages
  map.resources :categorizations
  map.resources :series, :singular => :one_series
  map.resources :events, :path_prefix => 'series/:series_id', :name_prefix => 'series_'
  map.connect '', :controller  => 'events', :action => 'index'
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format' 
  map.delete_categorization 'categorizations/:event_id/:category_id', :controller => 'categorizations', :action => 'destroy'
  map.create_categorization 'categorizations/',:controller => 'categorizations', :action => 'create'            
  map.authentification 'activate/:activation_code', :controller => 'users', :action => 'activate' 
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'
end
